﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using ClosedXML.Excel;
using SuppKids.Core.Domain;
using SuppKids.Core.Extensions;
using SuppKids.Core.Reporting.Data;
using SuppKids.Core.Stuff;
using SuppKids.Resources;

namespace SuppKids.Core.Reporting.Excel
{
    public class ReturnProductGenerator : ExcelReportGenerator
    {
        private readonly StuffInfoStorage stuffInfoStorage;

        public ReturnProductGenerator(StuffInfoStorage stuffInfoStorage)
        {
            this.stuffInfoStorage = stuffInfoStorage;
        }
        protected override void CreateWorkbook(out XLWorkbook workbook, out IXLWorksheet worksheet)
        {
            workbook = new XLWorkbook(Assembly.GetExecutingAssembly().GetManifestResourceStream("SuppKids.Core.Reporting.Excel.Templates.MoveProductsReport.xlsx"));
            worksheet = workbook.Worksheets.FirstOrDefault() ?? workbook.Worksheets.Add(workbook.Worksheets.Count.ToString(this.FormatProvider));
        }

        
        protected override void CreateContent(IXLWorksheet worksheet, IReportData reportData)
        {
        }
        
    }
}